package top.jinlijun.heytea.entities;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

public class Order {
    private String orderId;
    private Integer isBag;
    private String tel;
    private String remark;
    private Integer couponId;
    private Integer payWay;
    private Float totalPrice;
    private Integer storeId;
    private String userId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String date;
    private Integer state;
    private Integer isTakeSelf;

    //前端获取
    private List<Commodity> commodityList;
    private Store store;
    private User user;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getIsBag() {
        return isBag;
    }

    public void setIsBag(Integer isBag) {
        this.isBag = isBag;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }

    public Integer getPayWay() {
        return payWay;
    }

    public void setPayWay(Integer payWay) {
        this.payWay = payWay;
    }

    public Float getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Float totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public List<Commodity> getCommodityList() {
        return commodityList;
    }

    public void setCommodityList(List<Commodity> commodityList) {
        this.commodityList = commodityList;
    }

    public Integer getIsTakeSelf() {
        return isTakeSelf;
    }

    public void setIsTakeSelf(Integer isTakeSelf) {
        this.isTakeSelf = isTakeSelf;
    }

    public Store getStore() {
        return store;
    }

    public void setStore(Store store) {
        this.store = store;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", isBag=" + isBag +
                ", tel='" + tel + '\'' +
                ", remark='" + remark + '\'' +
                ", couponId=" + couponId +
                ", payWay=" + payWay +
                ", totalPrice=" + totalPrice +
                ", storeId=" + storeId +
                ", userId=" + userId +
                ", date='" + date + '\'' +
                ", state=" + state +
                ", isTakeSelf=" + isTakeSelf +
                ", commodityList=" + commodityList +
                ", store=" + store +
                '}';
    }
}
